#include "utils_Common.h"

#include <windows.h>
#include <Psapi.h>

namespace xs
{

int GetMemoryUsage()
{
    PROCESS_MEMORY_COUNTERS pmc;
    GetProcessMemoryInfo(GetCurrentProcess(), &pmc, sizeof(pmc));

    return pmc.WorkingSetSize;
}

}